package com.cosina.game.robodefence.eventlistener;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ListView;

import com.cosina.game.robodefence.R;
import com.cosina.game.robodefence.RoboDefenceActivity;

public class SpendreWardPageEventListener {

	public static void doReg(final RoboDefenceActivity acty) {
		{
			ListView listView = (ListView)acty.findViewById(R.id.rewardList);
			listView.setAdapter(new RewardArrayAdapter(acty));
		}
		{
			Button spendRewardsBtn = (Button)acty.findViewById(R.id.goBack);
			spendRewardsBtn.setOnClickListener(new OnClickListener() {
				@Override
				public void onClick(View v) {
					acty.setContentView(R.layout.main);
				}
			});
		}
	}
}
